package com.fhz.mvvm.ui.main;

import androidx.annotation.NonNull;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;

import com.fhz.mvvm.ui.main.datasource.MainLocalDataSource;
import com.fhz.mvvm.ui.main.datasource.MainRetrofitDataSource;

/**
 * 时间:2023/8/17
 *
 * @author Mr.Feng
 * 简述: TODO
 */
//public class MainViewModelFactory implements ViewModelProvider.Factory {
//
//    @NonNull
//    @Override
//    public <T extends ViewModel> T create(@NonNull Class<T> modelClass) {
//        return (T) new MainViewModel(new MainRepository(new MainLocalDataSource(),new MainRetrofitDataSource()));
//    }
//}
